package com.corechina.apex_osswords.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户token表
 * </p>
 *
 * @author cc
 * @since 2022-03-03
 */
@Getter
@Setter
@TableName("sys_user_token")
@ApiModel(value = "SysUserToken对象", description = "用户token表")
public class SysUserToken implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("登录类型 -1微信登录")
    private Integer loginType;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("过期时间")
    private Date expireTime;

    @ApiModelProperty("加密盐")
    private String secret;

    @ApiModelProperty("企业id")
    private Integer enterpriseId;

    public SysUserToken(){

    }

    public SysUserToken(Integer userId,Integer loginType,Date updateTime){
        this.userId = userId;
        this.loginType = loginType;
        this.updateTime = updateTime;
    }


}
